package context;

import javax.servlet.http.HttpServletResponse;

/**
 * Created by asus on 2017/6/18.
 */
public class ResponseContext {
    private static ThreadLocal<HttpServletResponse> t1=new ThreadLocal<>();

    public static void setCurrent(HttpServletResponse response){
        t1.set(response);
    }

    public static  HttpServletResponse getCurrent(){
        return t1.get();
    }
}
